/*继承抽象类，实现每个功能进行的操作*/

#ifndef GETTARGETREQUEST_H
#define GETTARGETREQUEST_H

#include <QObject>
#include <QDate>
#include "model.h"
#include "../config/constvariable.h"
#include "config.h"
#include "api.h"

class GetTargetRequest: public Api
{
    Q_OBJECT
public:
    GetTargetRequest() {}
    virtual ~GetTargetRequest() {}


public:
    //请求数据指令(获取靶标信息，清除靶标数据，-1，ID)
//     QByteArray requestDateApi(int addr);

     QByteArray requestStateApi() ;

     QByteArray requestBatteryApi() ;


    //设置编号
     QByteArray sendYuanXinApi(int old_addr, int new_addr) ;

     QByteArray sendHolesApi(int msg,int group_number) ;

     QByteArray sendGroupNumberApi(int groupNumber) ;

     QByteArray sendSearchDataApi(int fenZu, int baHao,const QString& time) ;


     QByteArray requestClearAllApi() ;

     QByteArray requestClearOnlyApi(int index2) ;



    //控制指令      传入的两个参数
//    virtual QByteArray setControlApi(int parameter1,int parameter2)=0;
//    virtual QByteArray sendGroupNumberApi(int groupNumber) = 0;

//    virtual QByteArray sendYuanXinApi(int old_addr, int new_addr) = 0;

     QByteArray sendBeginApi(int flag) ;

     QByteArray sendOverApi(int flag) ;

     QByteArray bindInfoApi(int addr,const QString& name,const QString& idCard) ;

     QByteArray sendIdApi(int addr) ;

     QByteArray sendCheckXandYApi(int addr,int x,int y) ;



     QByteArray pushTargetStateInfoApi();

     QByteArray pushTargetVoltageInfoApi();

     QByteArray currentTargetBulletApi(const OneTaregtBullet& oneTaregtBullet) ;

//     QByteArray searchCurrentDateApi(int groupnumber,int addr) ;

};


#endif // GETTARGETREQUEST_H
